﻿<UserControl x:Class="VKontakteClient.ProfileControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Local="clr-namespace:VKontakteClient" Loaded="UserControl_Loaded" DataContextChanged="UserControl_DataContextChanged">
    <UserControl.Resources>
        <Local:DateTimeConverter x:Key="LDateTimeConverter" />
        <Local:VisibilityConverter x:Key="visibilityConverter" />
    </UserControl.Resources>
    <Grid>
        <Local:MiniProfileControl x:Name="mini" Margin="0,0,0,40" Visibility="{Binding Path=ClosedProfile, Converter={StaticResource visibilityConverter}}" />
        <Local:FullProfileControl x:Name="maxi" Margin="0,0,0,40" Visibility="{Binding Path=!ClosedProfile, Converter={StaticResource visibilityConverter}}" />
        <Button Content="Обновить" x:Name="RefreshBtn" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="10" Click="Refresh_Click" />
        <Label x:Name="LoadedLbl" Content="{Binding Path=Loaded, Converter={StaticResource LDateTimeConverter}}" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="60,10,10,10" />
        <ComboBox x:Name="versionCombo" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="10" ItemsSource="{Binding Path=Modifies}" SelectedItem="{Binding Path=ShowTime}" SelectionChanged="ComboBox_SelectionChanged" />
    </Grid>
</UserControl>
